package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.dafuweng.*;
import com.yanqu.road.entity.enums.activity.dafuweng.eDaFuWengParamType;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class DFWActivityBussiness {

    // ------------【配置】------------

    public static Map<Integer, DFWBuildingConfig> getDFWBuildingConfigMap(int activityId) {
        return DaoHelper.getDFWBuildingConfigDaoImpl().getDFWBuildingConfigMap(activityId);
    }

    public static Map<Integer, DFWEvent> getDFWEventConfigMap(int activityId) {
        return DaoHelper.getDFWEventConfigDaoImpl().getDFWEventMap(activityId);
    }


    public static Map<Integer, DFWBossConfig> getDFWBossConfigMap(int activityId) {
        return DaoHelper.getDFWBossConfigDaoImpl().getDFWBossConfigMap(activityId);
    }

    public static List<DFWMapConfig> getDFWMapConfigList(int activityId) {
        return DaoHelper.getDFWMapConfigDaoImpl().getDFWMapConfigList(activityId);
    }

    public static Map<eDaFuWengParamType, DFWParamConfig> getDFWParamConfigMap(int activityId) {
        return DaoHelper.getDFWParamConfigDaoImpl().getDFWParamConfigMap(activityId);
    }

    // ------------【用户数据】------------

    public static Map<Long, DFWUserData> getDFWUserDataMap(int activityId) {
        return DaoHelper.getDFWUserDataDaoImpl().getDFWUserDataMap(activityId);
    }

    public static boolean addDFWUserData(DFWUserData data) {
        return DaoHelper.getDFWUserDataDaoImpl().add(data);
    }

    public static boolean updateDFWUserData(DFWUserData data) {
        return DaoHelper.getDFWUserDataDaoImpl().update(data);
    }

    // ------------【boss数据】------------

    public static Map<Integer, Map<Integer, DFWBossData>> getDFWBossDataMap(int activityId, int groupId) {
        return DaoHelper.getDFWBossDataDaoImpl().getDFWBossDataMap(activityId, groupId);
    }

    public static boolean addDFWBossData(DFWBossData data) {
        return DaoHelper.getDFWBossDataDaoImpl().add(data);
    }

    public static boolean updateDFWBossData(DFWBossData data) {
        return DaoHelper.getDFWBossDataDaoImpl().update(data);
    }

    // ------------【商会情报】------------

    public static Map<String, List<DFWUnionNews>> getDFWUnionNewsList(int activityId, int groupId) {
        return DaoHelper.getDFWUnionNewsDaoImpl().getDFWUnionNewsMap(activityId, groupId);
    }

    public static boolean addDFWUnionNews(DFWUnionNews data) {
        return DaoHelper.getDFWUnionNewsDaoImpl().add(data);
    }

    // ------------【boss伤害记录】------------

    public static Map<Integer, Map<Long, DFWAttackRecord>> getDFWAttackRecordMap(int activityId, int groupId, int minBossId) {
        return DaoHelper.getDFWAttackRecordDaoImpl().getDFWAttackRecordMap(activityId, groupId, minBossId);
    }

    public static boolean addDFWAttackRecord(DFWAttackRecord data) {
        return DaoHelper.getDFWAttackRecordDaoImpl().add(data);
    }

    public static boolean updateDFWAttackRecord(DFWAttackRecord data) {
        return DaoHelper.getDFWAttackRecordDaoImpl().update(data);
    }

}
